/**
 * @file
 * @auth jinguangguo
 * @date 2016/10/17
 */

html, body {
    height: 100%;
    min-height: 100%;
    text-size-adjust: none;
}

body {
    font-size: 12px;
    line-height: 1.4;
    //font-family: Helvetica, Arial, sans-serif;
    font-family: 'Helvetica Regular', 'Microsoft YaHei';
    //font-family: Hiragino Sans gb, Microsoft YaHei;
    //font-family: 'Microsoft YaHei', 'hiragino sans gb', 'Arial', sans-serif;
    color: #333;
    background-color: #fff;
}

body, input, select, textarea {
    -webkit-font-smoothing: initial; // 抗锯齿
    -moz-osx-font-smoothing: grayscale; // 抗锯齿
}

i, em, strong {
    font-style: normal;
}

a {
    color: $color-link;
    text-decoration: none;
    transition: all 0.4s ease;
    &:hover,
    &:active,
    &:link,
    &:visited {
        text-decoration: none;
    }
    &:hover {
        color: $color-link-hover;
        text-decoration: none;
    }
    &:focus{
        outline: none;
    }
    //&:active {
    //    color: $color-link-dark;
    //}
    &.gray {
        color: #666;
    }
}

// 表单
input, textarea, select {
    box-sizing: border-box;
    margin: 0;
    padding: 0 8px;
    border: 1px solid $color-input-border;
    outline: 0;
    font-size: 12px;
    word-break: break-all;
    border-radius: 4px;
    height: 32px;
    line-height: 32px;
    color: #333;

    &:hover {
        border: 1px $color-link-hover solid;
    }
    &:focus {
        border: 1px $color-link-hover solid;
    }
    &[disabled="disabled"] {
        background-color: #777;
        &:hover {
            border: 1px #ccc solid;
        }
        &:focus {
            border: 1px #ccc solid;
        }
    }
}

textarea {
    height: auto;
    line-height: 1.5;

    // 滚动条样式
    &::-webkit-scrollbar {
        width: 1px;
        height: 4px;
        background-color: #fff;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #ccc;
        height: 8px;
        -webkit-border-radius: 4px;
        border: 1px solid #ccc;
    }
}

input, select {

    @include placehold-color(#ccc);

    ////color: #cccdcd;
    //&::-webkit-input-placeholder { /* WebKit browsers */
    //    color: #5f686c;
    //}
    //&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    //    color: #5f686c;
    //}
    //&::-moz-placeholder { /* Mozilla Firefox 19+ */
    //    color: #5f686c;
    //}
    //&:-ms-input-placeholder { /* Internet Explorer 10+ */
    //    color: #5f686c;
    //}
    &[block] {
        display: block;
        width: 100%;
    }
}

textarea {
    padding: 8px;
    resize: none;
}

button {
    border: 0 none;
    cursor: pointer;
    &:focus {
        outline: none;
    }
}

th, td {
    //word-break: break-all;
}

.input {
    &--small {
        width: 128px;
    }
    &--large {

    }
}

.icon {
    vertical-align: baseline;
}

.icon-g {
    display: inline-block;
    margin-right: 3px;
}

.icon-bank {
    color: $color-link;
}

.icon-ABC {
    color: #158e7d;
}
.icon-BOC {
    color: #a40139;
}
.icon-CCB {
    color: #002c77;
}
//.icon-CEB {
//    color: #4e0967;
//}
.icon-GDB {
    color: #da362a;
}
.icon-CMB {
    color: #d60f48;
}
.icon-CMBC {
    i {
        font-style: normal;
    }
}
.icon-ICBC {
    color: #fa0201;
}
.icon-PAB {
    color: #fe330a;
}
.icon-SPDB {
    color: #466dbd;
}
.icon-BCM {
    color: #1D2087;
}
.icon-BOB {
    color: #CC3333;
}
.icon-CIB {
    color: #003399;
}
.icon-CITIC {
    color: #D8050B;
}
.icon-CZB {
    color: #CC9933;
}
.icon-bank-other {
    color: #56ABE4;
}
.icon-HXB {
    color: #CC3333;
}
.icon-PSBC {
    color: #007E3E;
}
.icon-CEB {
    color: #DDA922;
}
.icon-zfb {
    color: #00aaee;
}

.icon-BANK_OTHER {
    color: $color-link;
}

.icon-info{
    color:#0084ff;
}
.icon-arrow-right{
    color: #777;
}

.icon-person{
    color: #777;
}

// input[type=number]的上下小箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}

// 滚动条样式
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: $color-bg;
}

::-webkit-scrollbar-thumb {
    background-color: #303234;
    height: 50px;
    //outline-offset: -2px;
    //outline: 2px solid #303234;
    -webkit-border-radius: 4px;
    border: 2px solid #303234;
}

